from django.db import models

# Create your models here.
class People(models.Model):
    name=models.CharField(null=True,blank=True,max_length=200)
    job=models.CharField(null=True,blank=True,max_length=200)
    def __str__(self):
        return self.name
class Aritcle(models.Model):
    headline=models.CharField(null=True,blank=True,max_length=500)
    content=models.TextField(null=True,blank=True)
    def __str__(self):
        return self.headline
    # TextField  比  CharField能存更多的字